package com.ys.ffms.service.Impl;

import com.ys.ffms.mapper.ReportMapper;
import com.ys.ffms.pojo.Bill;
import com.ys.ffms.pojo.PO.ReportPO;
import com.ys.ffms.pojo.VO.queryBillVO;
import com.ys.ffms.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: ReportService实现类
 * @PROJECT_NAME: ffmsService
 * @DESCRIPTION:
 * @USER: lin
 * @DATE: 2022/1/17 13:14
 */
@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportMapper reportMapper;

    @Override
    public List<ReportPO> findAllSpendingData() {
       List<ReportPO> list = reportMapper.findAllSpendingData();
        return list;
    }

    @Override
    public List<Bill> findDateByLine() {
        List<Bill> list = reportMapper.findDateByLine();
        return list;
    }

    @Override
    public List<ReportPO> findAllIncomeData() {
        List<ReportPO> list = reportMapper.findAllIncomeData();
        return list;
    }

    @Override
    public List<Bill> findIncomeDateByLine() {
        List<Bill> list = reportMapper.findIncomeDateByLine();
        return list;
    }

    @Override
    public List<queryBillVO> expenditureColumnChart() {
        List<queryBillVO> list = reportMapper.expenditureColumnChart();
        return list;
    }

    @Override
    public List<queryBillVO> incomeColumnChart() {
        List<queryBillVO> list = reportMapper.incomeColumnChart();
        return list;
    }
}
